FROM java:8
MAINTAINER 关彦武
# volume 指定了临时文件目录
VOLUME /tmp
# 将jar包添加到容器中并更名为 app.jar
ADD server-demo-0.0.1-SNAPSHOT.jar serverdemo.jar
# 运行jar 包
RUN bash -c 'touch /serverdemo.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/serverdemo.jar"]